<?php

/**
 * categoria actions.
 *
 * @package    condorito
 * @subpackage categoria
 * @author     Freddy Daniel Garcia
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class categoriaActions extends sfActions {

  public function executeShow(sfWebRequest $request) {
    $this->categoria = $this->getRoute()->getObject();

    $this->pager = new sfPropelPager('CondoritoMateria',
        sfConfig::get('app_max_materias_en_categoria'));
    $this->pager->setCriteria($this->categoria->getCriteriaMateriasConCupos());
    $this->pager->setPage($request->getParameter('page', 1));
    $this->pager->init();

  }
}
